package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Product;
import com.repository.ProductDao;
import com.service.base.BaseServiceImp;

@Service("ProductService")
public class ProductServiceImp extends BaseServiceImp<Product> implements  ProductService{
	@Autowired
	private ProductDao productDao;
	
	@Override
	@Transactional
	public boolean insertprice(Product o) {
		// TODO Auto-generated method stub
		Product pro=new Product();
		List<Product> pros=productDao.find(pro);
		if (pros.size()>0) {
			return false;
		}
		//String goodId=o.getGoodId();
		return true;
	}
	
}
